package com.nanshenycd.service;

import com.nanshenycd.pojo.User;
import com.nanshenycd.vo.LoginVo;
import sun.security.krb5.internal.Ticket;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService {
    User checkUser(String username, String password);

    User doLogin(LoginVo loginVo,HttpServletRequest request,HttpServletResponse response);

    User getUserByCookie(String ticket, HttpServletRequest request, HttpServletResponse response);

    boolean logout(User user, Ticket ticket);
}

